From 5b6313f16f508882a0ea67716b7dbaa1c6967f04 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 30 Jun 2025 08:28:13 +0000
Subject: (대표님) 20250630 16시 - 유저 도메인별 라우터 분리와 보안성검토 대응
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../engineering/(engineering)/system/page.tsx      | 56 ++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 app/[lng]/engineering/(engineering)/system/page.tsx

(limited to 'app/[lng]/engineering/(engineering)/system/page.tsx')

diff --git a/app/[lng]/engineering/(engineering)/system/page.tsx b/app/[lng]/engineering/(engineering)/system/page.tsx
new file mode 100644
index 00000000..fe0a262c
--- /dev/null
+++ b/app/[lng]/engineering/(engineering)/system/page.tsx
@@ -0,0 +1,56 @@
+import { Separator } from "@/components/ui/separator"
+import { type SearchParams } from "@/types/table"
+import * as React from "react"
+import { getValidFilters } from "@/lib/data-table"
+import { searchParamsCache } from "@/lib/admin-users/validations"
+import { getAllRoles, getUsersEVCP } from "@/lib/users/service"
+import { getUserCountGroupByRole } from "@/lib/admin-users/service"
+import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
+import { UserTable } from "@/lib/users/table/users-table"
+
+interface IndexPageProps {
+  searchParams: Promise<SearchParams>
+}
+
+export default async function SystemUserPage(props: IndexPageProps) {
+
+  const searchParams = await props.searchParams
+  const search = searchParamsCache.parse(searchParams)
+
+  const validFilters = getValidFilters(search.filters)
+
+  const promises = Promise.all([
+    getUsersEVCP({
+      ...search,
+      filters: validFilters,
+    }),
+    getUserCountGroupByRole(),
+    getAllRoles()
+  ])
+
+  return (
+    <React.Suspense
+      fallback={
+        <DataTableSkeleton
+          columnCount={6}
+          searchableColumnCount={1}
+          filterableColumnCount={2}
+          cellWidths={["10rem", "12rem", "12rem", "12rem"]}
+          shrinkZero
+        />
+      }
+    >
+      <div className="space-y-6">
+        <div>
+          <h3 className="text-lg font-medium">SHI Users</h3>
+          <p className="text-sm text-muted-foreground">
+            시스템 전체 사용자들을 조회하고 관리할 수 있는 페이지입니다. 사용자에게 롤을 할당하는 것으로 메뉴별 권한을 관리할 수 있습니다.
+          </p>
+        </div>
+        <Separator />
+        <UserTable promises={promises} />
+      </div>
+    </React.Suspense>
+
+  )
+}
\ No newline at end of file
-- 
cgit v1.2.3

